package com.b2b.util;

import com.b2b.model.entity.system.SystemRouteAuthority;
import com.b2b.service.SystemRouteAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SystemRouteUtil {
    private final SystemRouteAuthorityService systemRouteAuthorityService;
    @Autowired
    public SystemRouteUtil(SystemRouteAuthorityService systemRouteAuthorityService){
        this.systemRouteAuthorityService = systemRouteAuthorityService;
    }

    public SystemRouteAuthority getById(Integer routeId){
        SystemRouteAuthority systemRouteAuthority = systemRouteAuthorityService.selectByPrimaryKey(routeId);
        return systemRouteAuthority;
    }
}
